App resources may be stored in many different locations, for example, in an app's data dir, on the local filesystem, or on a remote server.
When using functions and methods that open or load resources, you can use any of the following special prefixes when specifying resource paths:
Also, note that Mojo module load commands will automatically insert a "monkey://data/" prefix before any path that does not already incude a prefix. For example, LoadImage( "myimage.png" ) is the same as LoadImage( "monkey://data/myimage.png" ).
Function | Android | iOS | Win8 | Glfw | Html5 | Flash | Xna | Psm | Stdcpp |
---|---|---|---|---|---|---|---|---|---|
LoadString | web, data, file | data, file | data, file | data, file | web, data | data | data | data | NA |
LoadImage | web, data, file | web, data, file | data, file | data, file | web, data | data | data | data | NA |
LoadSound | data | data, file | data, file | data, file | web, data | data | data | data | NA |
PlayMusic | data | data, file | data, file | data, file | web, data | data | data | data | NA |
DataBuffer.Load | web, data, file | data, file | data, file | data,file | web, data | data | data | data | file |
FileStream.Open | file | file | file | file | NA | NA | file | file | file |